package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by Steve.Tao on 2017/8/16.
 */
@Component
//@ConfigurationProperties(prefix = "zhongan")
//@PropertySource("classpath:properties/zhongan.properties")
@DisconfFile(targetDirPath = "disconf", filename = "zhongan.properties")
public class ZhonganProperties {
    private String appKey;
    private String accountNo;
    private String privateKey;

    @DisconfFileItem(name = "zhongan.appKey", associateField = "appKey")
    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    @DisconfFileItem(name = "zhongan.accountNo", associateField = "accountNo")
    public String getAccountNo() {
        return accountNo;
    }

    public void setAccountNo(String accountNo) {
        this.accountNo = accountNo;
    }

    @DisconfFileItem(name = "zhongan.privateKey", associateField = "privateKey")
    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }
}
